package com.link.base.base.contract.dao.mybatis.mapper;

import com.link.base.base.contract.model.PriContItemTemp;
import com.link.base.base.contract.model.PriContItemTempData;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.model.CallParam;

import java.util.List;

/**
 * 价格产品临时对象
 *
 * @date 2023-09-11 21:26:45
 */
public interface PriContItemTempMapper extends BasicMapper<PriContItemTemp> {

    void addData(PriContItemTempData priContItemTempData);

    void addErrorData(PriContItemTempData priContItemTempData);

    void batchInserts(List<PriContItemTempData> list);


    void runDataImport(CallParam record) throws Exception;

    void updateCheckFail(PriContItemTemp priContItemTemp) throws Exception;

    void updateCheckSuccess(List<PriContItemTemp> list) throws Exception;

    void deleteAll(PriContItemTemp record) throws Exception;

    /**
     * 校验前，先更新物料id
     * @param record
     * @throws Exception
     */
    void updateMaterialCodeId(PriContItemTemp record) throws Exception;

    List<PriContItemTemp> queryToCheckData(PriContItemTemp record) throws Exception;

}
